extension StringExt on String {
  /// 插入零宽空格，用于Text中能正常显示省略号模式
  String insertedZeroWidthSpaces() {
    if (isEmpty) {
      return this;
    }
    String breakWord = ' ';
    runes.forEach((element) {
      breakWord += String.fromCharCode(element);
      breakWord += '\u200B';
    });
    return breakWord;
  }
}
